package br.org.etec.dotcao.model;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Table(name="tanimalpicture")
@Entity
public class AnimalPicture extends Picture{

	private static final long serialVersionUID = 1L;

	@ManyToOne
	@JoinColumn(name="animal")
	private Animal animal;

	public Animal getAnimal() {
		return animal;
	}

	public void setAnimal(Animal animal) {
		this.animal = animal;
	}
	
}
